﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SARUserControls
{
    /// <summary>
    /// 窗口关闭按钮
    /// </summary>
    public partial class SARWindowsCloseButton : UserControl
    {
        public SARWindowsCloseButton()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 窗口关闭按钮单击事件
        /// </summary>
        public event MouseButtonEventHandler SARClick;

        private void winCloseBtn_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            if (SARClick!=null)
            {
                SARClick.Invoke(this, e);
            }
        }

        private void winCloseBtn_MouseEnter(object sender, MouseEventArgs e)
        {

        }

        private void winCloseBtn_MouseLeave(object sender, MouseEventArgs e)
        {

        }
    }
}
